import menu1Conf from "./menus/menu1";
import withAttachment from "./plugin";
import renderElemConf from "./render-elem";
import elemToHtmlConf from "./elem-to-html";
import parseHtmlConf from "./parse-elem-html";
import { constant } from "./constant";
import { type IModuleConf, Boot } from "@wangeditor/editor";
const module: Partial<IModuleConf> = {
  menus: [menu1Conf],
  editorPlugin: withAttachment,
  renderElems: [renderElemConf],
  elemsToHtml: [elemToHtmlConf],
  parseElemsHtml: [parseHtmlConf]
};
function focusNode1(toolbarConfig: toolbarConfigType) {
  if (!toolbarConfig) return;
  toolbarConfig.insertKeys.keys.push(constant.key);
  Boot.registerModule(module);
}
export default focusNode1;
